package homework01;

public class Employee01 {
    private String name;
    private String num;
    private int salary;

    public Employee01(String name,String num,int salary){
        this.name = name;
        this.num = num;
        this.salary = salary;
        System.out.println("创建员工对象：" + name);
    }

   public void work(){
      System.out.println("员工：" + name + "，工号：" +num + "，正在工作...");
      System.out.println("工资：" + salary + "元");
  }
}

